﻿package toolbar.font {
	import toolbar.NormalButton;
	import toolbar.icon.FontColorIcon;
	
	public class FontColorButton extends NormalButton {
		private var colorDisplay:ColorDisplay;
		
		public function FontColorButton(name:String):void {
			super(name);
			addIcon(new FontColorIcon());
			colorDisplay = new ColorDisplay();
			addChild(colorDisplay);
		}
		
		public function setDisplayColor(color:uint):void {
			colorDisplay.drawSquare(color);
		}
	}
}